package pattern.responsibilitychain;

public class TestHandler {
    public static void main(String[] args) {
        StaffHandler staffHandler=new StaffHandler();
        ManagerHandler managerHandler=new ManagerHandler();
        BossHandler bossHandler=new BossHandler();
        staffHandler.setNextHandler(managerHandler);
        managerHandler.setNextHandler(bossHandler);

        staffHandler.dispose("小王",400);
        staffHandler.dispose("小混混",800);
        staffHandler.dispose("老李",1200);

        staffHandler.dispose("小明",10000);
    }
}
